package com.xxx;

import java.math.BigDecimal;

public class Deposit implements Runnable{
    private Account acc = new Account();

    public Deposit(Account acc) {
        this.acc = acc;
    }

    @Override
    public void run() {
        while (true) {
            acc.depositMoney(2000.0);
        }
    }
}
